package com.shenyong.mapper;

import com.shenyong.entity.Collection;
import com.shenyong.entity.Users;
import com.shenyong.entity.Users_Concern;

import java.util.List;

/**
 * @author
 * @site
 * @company
 * @create
 */
public interface UserMapper {
    public Users getUserByName(String username);
    public Users getByUserId(int userId);
    public Users getByUser(Users users);
    public int updatePasword(Users users);
    //是否关注
    //查询是否关注
    public List<Users_Concern> AllUsers_Concern(Users_Concern sers_Concern);
    //添加（关注）
    public  int addUsers_Concern(Users_Concern sers_Concern);
    //删除（取消关注）
    public  int delUsers_Concern(Users_Concern sers_Concern);


    //是否收藏
    //查询是否收藏
    public List<Collection> AllCollection(Collection collection);
    //添加（收藏）
    public  int addCollection(Collection collection);
    //删除（取消收藏）
    public  int delCollection(Collection collection);
}
